//package com.lu.sb210222client.heart;
//
//import io.netty.channel.Channel;
//import io.netty.channel.ChannelInitializer;
//import io.netty.handler.timeout.IdleStateHandler;
//
//public class CustomerHandleInitializer extends ChannelInitializer<Channel> {
//    @Override
//    protected void initChannel(Channel channel) throws Exception {
//        channel.pipeline()
//                //10 秒没发送消息 将IdleStateHandler 添加到 ChannelPipeline 中
//                .addLast(new IdleStateHandler(0, 10, 0))//(6)
//                .addLast(new HeartbeatEncode())//(7)
//                .addLast(new EchoClientHandle());//(8)
//    }
//}
